<?php use_javascript('frontend/message/index.js') ?>
<?php echo __('send') ?> :<input type="radio" name="selectMessage"  value="<?php echo url_for('ShowMessages', array('type' => 'send')) ?>" />
<br />
<?php echo __('receive') ?>:<input type="radio" name="selectMessage" value="<?php echo url_for('ShowMessages', array('type' => 'receive')) ?>" />
<div id="messages">

</div>
<?php if ($maxUser->getMaxUserRole()->canAdd(SiteComponent::Message)): ?>
    <a href="<?php echo url_for('SendMessage') ?>" id="sendNewMessage">send message</a>
    <div id="sendMessage"></div>
    <?php
 endif?>
